
import Request from '../util/request'

export default class Driver extends Request {

  // 获取资料
  getInfo(data) {
    return this.request({
      url: '/h5/driver/get-info',
      data
    })
  }

  // 订单
  getOrderList(data) {
    return this.request({
      url: '/h5/driver/order',
      data
    })
  }

  // 入库
  into(data) {
    return this.request({
      url: '/h5/driver/into',
      data
    })
  }

  out(data) {
    return this.request({
      url: '/h5/driver/out',
      data
    })
  }

  received(data) {
    return this.request({
      url: '/h5/driver/received',
      data
    })
  }

  pay(data) {
    return this.request({
      url: '/h5/driver/pay',
      data
    })
  }

  cancelReceived(data) {
    return this.request({
      url: '/h5/driver/cancel-received',
      data
    })
  }

  cancelPay(data) {
    return this.request({
      url: '/h5/driver/cancel-pay',
      data
    })
  }

  // 入库
  scanInto(data) {
    return this.request({
      url: '/h5/app/driver-scan-into',
      data
    })
  }

  scanOut(data) {
    return this.request({
      url: '/h5/app/driver-scan-out',
      data
    })
  }

}
